<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('店铺')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-source="shop/shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('台桌')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-table_id" data-source="shop/shoptable/index" class="form-control selectpage" name="row[table_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_sn" data-rule="required" class="form-control" name="row[device_sn]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('默认温度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-temp" data-rule="required" class="form-control" name="row[temp]" type="number" value="18">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('默认模式')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-mode" class="form-control selectpicker" name="row[mode]">
                {foreach name="mode" item="vo"}
                <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
